/**
 * Created by Hn on 2014/12/18.
 */
var cc98 = angular.module('cc98v2',[]);

cc98.controller("header", function ($scope) {


}).directive('mcUsercenter', function() {
    return {
        restrict: 'EA',
        replace:true,
        templateUrl: 'views/user_center.html',
        link: function (scope, elem) {
            //temp var for testing
            scope.isLogin = 1;
            scope.isHide = 1;
            elem.bind("mouseenter", function () {
                scope.isHide = 0;
                scope.$apply();
            })

            elem.bind("mouseleave", function () {
                scope.isHide = 1;
                scope.$apply();
            })
        }
    };
});